import request from "@/utils/request";

// 查询采购入库列表
export function listMachineLkM(query) {
  return request({
    url: "/machine/machineLkM/list",
    method: "get",
    params: query,
  });
}

// 查询采购入库详细
export function getMachineLkM(id) {
  return request({
    url: "/machine/machineLkM/" + id,
    method: "get",
  });
}

// 新增采购入库
export function addMachineLkM(data) {
  return request({
    url: "/machine/machineLkM",
    method: "post",
    data: data,
  });
}

// 修改采购入库
export function updateMachineLkM(data) {
  return request({
    url: "/machine/machineLkM",
    method: "put",
    data: data,
  });
}

// 删除采购入库
export function delMachineLkM(id) {
  return request({
    url: "/machine/machineLkM/" + id,
    method: "delete",
  });
}

// 查询采购入库单号
export function getLkDocumentNo() {
  return request({
    url: "/machine/machineLkM/getLkDocumentNo",
    method: "get",
  });
}

// 审核
export function auditMachineLkM(data) {
  return request({
    url: "/machine/machineLkM/audit",
    method: "put",
    data: data,
  });
}
